﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EShop.Core.Model.Store;

namespace EShop.Services.Store
{
    public interface ILogistics
    {
        /// <summary>
        /// 添加配送方式
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        bool AddShip(Logistics model);
        /// <summary>
        /// 修改配送方式
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        bool UpdateShip(Logistics model);
        /// <summary>
        /// 删除配送方式
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        bool DelShip(string id);
        /// <summary>
        /// 查询配送方式分页
        /// </summary>
        /// <param name="start"></param>
        /// <param name="limit"></param>
        /// <param name="fiter"></param>
        /// <returns></returns>
        string AllShip(string start, string limit, string fiter);
        /// <summary>
        /// 查询一条配送方式
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        string GetShipById(string id);
    }
}
